package com.yangrong.newsservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yangrong.common.utils.PageUtils;
import com.yangrong.newsservice.entity.TbArticlesEntity;

import java.util.List;
import java.util.Map;

/**
 * 文章表
 *
 * @author yangrong
 * @email 455833224@qq.com
 * @date 2020-09-04 11:09:13
 */
public interface TbArticlesService extends IService<TbArticlesEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveArticle(TbArticlesEntity entity);

    List<TbArticlesEntity> getArticleList(Map<String, Object> params);

    List<TbArticlesEntity> getMoreArticleList(Map<String, Object> params);

    Integer getArticleListSize(Map<String, Object> params);

    String getArticleContent(Map<String, Object> params);

    List<TbArticlesEntity> getArticleCarousel(Map<String, Object> params);

    List<TbArticlesEntity> getFlashArticle(Map<String, Object> params);
}

